home *** CD-ROM | disk | FTP | other *** search
- Path: HERCULES.CS.UREGINA.CA!wright
- From: wright@HERCULES.CS.UREGINA.CA (Shayne G. Wright)
- Newsgroups: comp.os.linux.development.apps,comp.lang.c
- Subject: Are these assumptions about libraries and headers correct ?
- Followup-To: comp.lang.c
- Date: 29 Mar 1996 21:13:50 GMT
- Organization: University of Regina, Dept. of Computer Science
- Sender: Shayne G. Wright
- Message-ID: <4jhjqe$l7u@sue.cc.uregina.ca>
- NNTP-Posting-Host: hercules.cs.uregina.ca
- Summary: Does this type of compilation error indicate a missing header ?
-
- Hi
-
- I am trying to compile procps-0.99 and encounter
- this message :
-
- /usr/X11R6/lib/libXt.so: undefined reference to `XkbLookupKeySym'
-
- I guess my assumption is, does the problem have
- anything to do with the header files in /usr/X11R6/include/X11/
- Or specifically a missing Xt/ subdirectory and/or a missing
- XkbLookupKeySym.h file. This is new to me, so please correct
- me if I am wrong.
-
- Secondly, what is the difference between lib*.a,
- lib*.sa, and lib*.so.* files ?
-
- --- Relevant info ---
- I have encountered undefined reference problems before
- and have had no problem fixing them, but this time I'm not
- sure of the cause. I am doing an ELF compilation and the file
- /usr/X11R6/lib/libXt.so is a link to libXt.so.6 which is, in
- turn a link to libXt.so.6.0, and ELF library.
-
- krusty[procps-0.99a]=2=>>file libXt.*
- libXt.a: current ar archive
- libXt.so: symbolic link to libXt.so.6
- libXt.so.6: symbolic link to libXt.so.6.0
- libXt.so.6.0: ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
-
- Permissions are set (for the parent directories as well) :
-
- krusty[procps-0.99a]=3=>>ls -al libXt.*
- -rw-r--r-- 356750 Feb 28 00:34 libXt.a
- lrwxrwxrwx 12 Mar 23 00:21 libXt.so -> libXt.so.6
- lrwxrwxrwx 12 Mar 23 00:21 libXt.so.6 -> libXt.so.6.0*
- -rwxr-xr-x 308539 Feb 28 00:34 libXt.so.6.0*
-
- And for further verification :
-
- krusty[lib]=2=>>nm libXt.so |grep XkbLookupKeySym
- U XkbLookupKeySym
- krusty[lib]=3=>>nm libXt.a | grep XkbLookupKeySym
- U XkbLookupKeySym
-
- --- End of relevant scripts ---
-
- I am using GCC-2.7.0 on a system running Linux-1.3.72
-
- As always my thanks
- Take Care
- Shayne
-